package cn.wolfcode.luowowo.search.repository;

import cn.wolfcode.luowowo.search.domain.TravelTemplate;
import cn.wolfcode.luowowo.search.domain.UserInfoTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 游记spring-data-jpa接口
 */
@Repository
public interface ITravelSearchRepository extends ElasticsearchRepository<TravelTemplate, Long>{

    /**
     * 通过目的地名称查询
     * @param destName
     * @return
     */
    List<TravelTemplate> findByDestName(String destName);
}
